/*
 * @Author: fangjun fangjun@deepexi.com
 * @Date: 2025-10-14 15:22:34
 * @LastEditors: fangjun fangjun@deepexi.com
 * @LastEditTime: 2025-10-14 15:44:46
 * @FilePath: \reactweb\server\routes\authRoutes.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
/**
 * 认证相关路由配置
 */
const express = require('express');
const { loginHandler, registerHandler, healthCheckHandler } = require('../controllers/authController');

const router = express.Router();

// 登录API端点
router.post('/login', loginHandler);

// 注册API端点
router.post('/register', registerHandler);

// 健康检查API端点
router.get('/health', healthCheckHandler);

module.exports = router;